import request from "@/utils/request";
export function getLinksList(query) {
    return request({
        url: "/tk/link-manage/page",
        method: "get",
        params: query,
    });
}
export function addLinks(query) {
    return request({
        url: "/tk/link-manage/create",
        method: "post",
        data: query,
    });
}

export function editLinks(query) {
    return request({
        url: "/tk/link-manage/update",
        method: "put",
        data: query,
    });
}

export function deleteLinks(query) {
    return request({
        url: "/tk/link-manage/delete",
        method: "delete",
        params: query,
    });
}
export function patchDeleteLinks(query) {
    return request({
        url: "/tk/link-manage/batch-delete",
        method: "delete",
        params: query,
    });
}

export function updateLinksStatus(query) {
    return request({
        url: "/tk/link-manage/batch-update",
        method: "put",
        data: query,
    });
}

export function exportLinks(query) {
    return request({
        url: "/tk/link-manage/export-excel",
        method: "get",
        params: query,
        responseType: "blob",
    });
}
